﻿@model IList<Entidad.Cliente>
<div id="grid" class="form-inline" role="grid">
    <table class="table table-striped table-hover table-bordered" id="editable-sample" aria-describedby="editable-sample_info">
        <thead>
            <tr role="row">
                <th class="sorting" role="columnheader" tabindex="0" aria-controls="editable-sample" rowspan="1" colspan="1" aria-label="Full Name: activate to sort column ascending" style="width: 20%;">Cliente</th>
                <th class="sorting" role="columnheader" tabindex="0" aria-controls="editable-sample" rowspan="1" colspan="1" aria-label="Points: activate to sort column ascending" style="width: 5%;">Documento</th>
                <th class="sorting" role="columnheader" tabindex="0" aria-controls="editable-sample" rowspan="1" colspan="1" aria-label="Notes: activate to sort column ascending" style="width: 20%;">Domicilio</th>
                <th class="sorting" role="columnheader" tabindex="0" aria-controls="editable-sample" rowspan="1" colspan="1" aria-label="Notes: activate to sort column ascending" style="width: 5%;">Teléfono</th>
                <th class="sorting" role="columnheader" tabindex="0" aria-controls="editable-sample" rowspan="1" colspan="1" aria-label="Notes: activate to sort column ascending" style="width: 5%;">Email</th>
                <th class="sorting" role="columnheader" tabindex="0" aria-controls="editable-sample" rowspan="1" colspan="1" aria-label="Notes: activate to sort column ascending" style="width: 10%;">Ciudad</th>
                <th class="sorting" role="columnheader" tabindex="0" aria-controls="editable-sample" rowspan="1" colspan="1" aria-label="Notes: activate to sort column ascending" style="width: 10%;">Provincia</th>
                <th class="sorting" role="columnheader" tabindex="0" aria-controls="editable-sample" rowspan="1" colspan="1" aria-label="Notes: activate to sort column ascending" style="width: 10%;">Tipo Iva</th>
                <th class="sorting" role="columnheader" tabindex="0" aria-controls="editable-sample" rowspan="1" colspan="1" aria-label="Notes: activate to sort column ascending" style="width: auto;"></th>
            </tr>
        </thead>
        <div id='dialogDiv' class='modal hide fade in'>
            <div id='dialogContent'></div>
        </div>
        <tbody role="alert" aria-live="polite" aria-relevant="all">
            @foreach (Entidad.Cliente cliente in Model)
            {
                <tr class="odd">
                    <td class="sorting_1 ">@cliente.Nombre @cliente.Apellido</td>
                    <td class=" ">@cliente.Documento</td>
                    <td class=" ">@cliente.Calle @cliente.Numeracion @cliente.Piso @cliente.Departamento</td>
                    <td class="center ">@cliente.TelefonoFijo</td>
                    <td class=" ">@cliente.Email</td>
                    <td class=" ">@cliente.Ciudad.Nombre</td>
                    <td class=" ">@cliente.Provincia.Nombre</td>
                    <td class=" ">@cliente.TipoIva.Denominacion</td>
                    <td class="center ">@Html.ActionLink("Editar", "FindById", new { id = cliente.Id }, new { @class = "btn btn-info btn-small" })</td>
                    <td class="center ">@Html.ActionLink("Eliminar", "Eliminar", new { id = cliente.Id }, new { @class = "btn btn-danger btn-small" })</td>
                </tr>
            }

        </tbody>
    </table>

</div>


